﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.fminutes.vinciDll {

    public class FileList {

        private static var instance:FileList;

        private var _fileList:Array;
        private var dddList:Array;

        public function FileList(){
            this._fileList = [];
        }
        public function get fileList():Array{
            return (this._fileList);
        }
        public function set fileList(_arg1:Array):void{
            this._fileList = _arg1;
        }
        public function get loadingList():Array{
            var _local3:DllFileObject;
            var _local1:Array = [];
            var _local2:int;
            while (_local2 < this.fileList.length) {
                _local3 = (this.fileList[_local2] as DllFileObject);
                if ((((((_local3.weight == -1)) && (!((_local3.status == DllFileObject.LOADED))))) && (!((_local3.status == DllFileObject.LOADING))))){
                    _local1.push(_local3);
                };
                _local2++;
            };
            return (_local1);
        }
        public function get mainList():Array{
            var _local3:DllFileObject;
            var _local1:Array = [];
            var _local2:int;
            while (_local2 < this.fileList.length) {
                _local3 = (this.fileList[_local2] as DllFileObject);
                if (((((((!((_local3.weight == -1))) && ((_local3.weight == 0)))) && (!((_local3.status == DllFileObject.LOADED))))) && (!((_local3.status == DllFileObject.LOADING))))){
                    _local1.push(_local3);
                };
                _local2++;
            };
            return (_local1);
        }
        public function get delayedList():Array{
            var _local3:DllFileObject;
            var _local1:Array = [];
            var _local2:int;
            while (_local2 < this.fileList.length) {
                _local3 = (this.fileList[_local2] as DllFileObject);
                if (((((((!((_local3.weight == -1))) && (!((_local3.weight == 0))))) && (!((_local3.status == DllFileObject.LOADED))))) && (!((_local3.status == DllFileObject.LOADING))))){
                    _local1.push(_local3);
                };
                _local2++;
            };
            _local1.sortOn("weight", Array.NUMERIC);
            return (_local1);
        }
        public function getgroupList(_arg1:String):Array{
            var _local4:DllFileObject;
            var _local2:Array = [];
            var _local3:int;
            while (_local3 < this.fileList.length) {
                _local4 = (this.fileList[_local3] as DllFileObject);
                if ((((((_local4.groupName == _arg1)) && (!((_local4.status == DllFileObject.LOADED))))) && (!((_local4.status == DllFileObject.LOADING))))){
                    _local2.push(_local4);
                };
                _local3++;
            };
            _local2.sortOn("weight", Array.NUMERIC);
            return (_local2);
        }

    }
}//package com.fminutes.vinciDll 
